Carpal tunnel syndrome can be caused by compression of the median nerve at the wrist, which can lead to pain and weakness in the hand. The median nerve supplies sensation to the thumb and first two fingers, and also to some of the muscles of the hand.